package com.cc.constant;

/**
 * @author CHENCHEN
 * @company 北京学佳澳教育科技
 * @create 2023-03-02 14:56
 */
public class BusinessStatusConstant {

    //操作成功
    public static final Integer OK = 0;

    //操作成功返回提示信息
    public static final String OK_MESSAGE = "操作成功";

    //操作失败
    public static final Integer ERR = -1;

    //操作失败返回提示信息
    public static final String ERR_MESSAGE = "操作失败";

    //没有权限
    public static final Integer UNAOTHORIZATION = 401;

    //没有权限返回提示信息
    public static final String UNAOTHORIZATION_MESSAGE = "用户未登录";

    //业务异常
    public static final Integer BUSINESS_EXCEPTION = 402;

    //业务异常返回提示信息
    public static final String BUSINESS_EXCEPTION_MESSAGE = "Business exception ....";

    //token过期
    public static final Integer TOKEN_TIMEOUT = 999;

    //token过期提示
    public static final String TOKEN_TIMEOUT_MESSAGE = "token已过期....";

    //非法token
    public static final Integer TOKEN_EXCEPTION = 777;

    //非法token提示
    public static final String TOKEN_EXCEPTION_MESSAGE = "非法Token";

}
